package com.yanqu.road.server.cmd.activity.zhenhuan.secondProcess.cross;

import com.yanqu.road.logic.activity.zhenhuan.ZhenHuanThirdProcessConfig;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.ZhenHuanProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.zhenhuan.ZhenHuanSecondProcessModule;
import com.yanqu.road.server.manger.activity.zhenhuan.ZhenHuanConfigMgr;
import com.yanqu.road.server.manger.activity.zhenhuan.ZhenHuanMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_ZHENHUAN_SECOND_PROCESS_JOIN_PARTY_CROSS_BACK, desc = "甄嬛第二阶段加入茶话会返回")
public class ZhenHuanSecondProcessJoinPartyFromCrossCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        ZhenHuanProto.ZhenHuanSecondProcessJoinPartyRespMsg respMsg = ZhenHuanProto.ZhenHuanSecondProcessJoinPartyRespMsg.parseFrom(packet.getBytes());
        player.getModule(ZhenHuanSecondProcessModule.class).joinPartyBack(respMsg);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
